package com.ganzi.ganziserver.service;

import com.ganzi.ganziserver.core.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    public User findUserByName(String name) throws Exception;
    public User findUserByid(long id) throws Exception;
    public void regist(String name,String pass,long roleId) throws Exception;
    public void loginLog(User user) throws Exception;
    public void changePassWord(String password) throws Exception;
    public void updateRandom(User use)throws Exception;
    public List<User> findAllUser()throws Exception;
    public void lockUser(long id,int lock) throws Exception;
    public void changeRole(long id,long role) throws Exception;
}
